#ifndef DLGBASEDQT_H
#define DLGBASEDQT_H

#include "dlgbased.h"

#include <QtGui>

class DlgBasedQt : virtual public DlgBased, public QObject
{

public:
    DlgBasedQt();

    virtual int      dlgExec ( void );
    virtual void   dlgDelete ( void );

    // Only for Qt dialogs based
       void    installDlg ( QDialog *ui, const string &title );
        int  dlgSetParent ( QWidget *parent );
    QWidget *dlgGetParent ( void ) const;

private:
    QDialog *m_ui;
    QWidget *m_parent;
       bool m_isDefault;
};

#endif // DLGBASEDQT_H
